﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DispatchAdd.aspx.cs" Inherits="ITOMMS.Web.Dispatch.DispatchAdd" %>

<%@ Register Src="../Control/HeadControl.ascx" TagName="HeadControl" TagPrefix="uc4" %>
<%@ Register Src="../Control/FootControl.ascx" TagName="FootControl" TagPrefix="uc3" %>
<%@ Register Src="../Control/leftMenuControl.ascx" TagName="leftMenuControl" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>新建派单</title>
     <link href="../css/layout.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" id='skin' type="text/css" href="../css/skin/qq/ymPrompt.css" />
    <link rel="stylesheet" id='Link1' type="text/css" href="../css/jquery.Validator.Tooltip.css" />

    <script type="text/javascript" src="../js/jquery.pack.js"></script>

    <script type="text/javascript" src="../js/jquery.Validator.js"></script>

    <script type="text/javascript" src="../js/ymPrompt.js"></script>

    <!--用到日期控件才使用-->

    <script language="javascript" type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="content1">
                    <div style="margin: 0 0; height: 428px; text-align: center; border: 1px solid #DCDCDC;
                        background: url(images/line_bg.PNG) repeat-x bottom;">
                        <table class="tblDataArea" width="100%">
                            <tr class="tblQueryArea">
                                <td class="tblDataCaption" colspan="4">
                                    <div style="width: 210px;" class="title">
                                        <img src="../images/lv3.gif" style="margin-bottom: -3px;" />新建派单</div>
                                </td>
                            </tr>
                            <tr>
                                <td class="tdQueryCaption">
                                    工单号：</td>
                                <td class="tdQueryField" colspan="3">
                                    <span>&nbsp;<asp:Label ID="lblNO" runat="server"></asp:Label></span><span style="color: #ff0000"></span></td>
                            </tr>
                            <tr>
                                <td class="tdQueryCaption">
                                    所属公司：</td>
                                <td class="tdQueryField" colspan="3">
                                    <asp:DropDownList ID="ddlOwnerCompnayID" runat="server" class="input_out" onfocus="this.className='input_on';this.onmouseout=''"
                                            onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                            onmousemove="this.className='input_move'" onmouseout="this.className='input_out'" OnSelectedIndexChanged="ddlOwnerCompnayID_SelectedIndexChanged" AutoPostBack="True">
                                </asp:DropDownList><span style="color: #ff0000">*</span></td>
                            </tr>
                            <tr>
                                <td class="tdQueryCaption">
                                    事件来源：</td>
                                <td class="tdQueryField"><span style="color: #ff0000"><asp:DropDownList ID="ddlTaskSource" runat="server" class="input_out" onfocus="this.className='input_on';this.onmouseout=''"
                                            onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                            onmousemove="this.className='input_move'" onmouseout="this.className='input_out'">
                                        </asp:DropDownList>*</span></td>
                                <td class="tdQueryCaption">
                                    请求人：</td>
                                <td class="tdQueryField"><asp:DropDownList ID="ddlRequestPeople" runat="server" class="input_out" onfocus="this.className='input_on';this.onmouseout=''"
                                            onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                            onmousemove="this.className='input_move'" onmouseout="this.className='input_out'">
                                </asp:DropDownList><span style="color: #ff0000">*</span></td>
                            </tr>
                            <tr>
                                <td class="tdQueryCaption">
                                    期望完成时间：</td>
                                <td class="tdQueryField">
                                    <asp:TextBox ID="txtExpectTime" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                        onfocus="this.className='input_on';this.onmouseout='';WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd HH:mm:ss'});" onmousemove="this.className='input_move'"
                                        onmouseout="this.className='input_out'"></asp:TextBox><span style="color: #ff0000">*</span></td>
                                <td class="tdQueryCaption">
                                    服务分类：</td>
                                <td class="tdQueryField">
                                    <asp:DropDownList ID="ddlServiceID" runat="server" class="input_out" onfocus="this.className='input_on';this.onmouseout=''"
                                            onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                            onmousemove="this.className='input_move'" onmouseout="this.className='input_out'">
                                    </asp:DropDownList><span style="color: #ff0000">*</span></td>
                            </tr>
                            <tr>
                                <td class="tdQueryCaption">
                                    紧急度：</td>
                                <td class="tdQueryField">
                                    <span style="color: #ff0000"><asp:DropDownList ID="ddlUrgencyDegree" runat="server" class="input_out" onfocus="this.className='input_on';this.onmouseout=''"
                                onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onmousemove="this.className='input_move'" onmouseout="this.className='input_out'" Width="65px">
                                <asp:ListItem Value="1">低</asp:ListItem>
                                <asp:ListItem Value="2">正常</asp:ListItem>
                                <asp:ListItem Value="3">高</asp:ListItem>
                                <asp:ListItem Value="4">紧急</asp:ListItem>
                            </asp:DropDownList>*</span></td>
                                <td class="tdQueryCaption">
                                    </td>
                                <td class="tdQueryField"></td>
                            </tr>
                            <tr>
                                <td class="tdQueryCaption">
                                    事项标题：</td>
                                <td class="tdQueryField" colspan="3">
                                    <asp:TextBox ID="txtTitle" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                                        onmouseout="this.className='input_out'" Width="250px"></asp:TextBox><span style="color: #ff0000">*</span></td>
                            </tr>
                            <tr>
                                <td class="tdQueryCaption">
                                    派单详细描述：</td>
                                <td class="tdQueryField" colspan="3">
                                    <asp:TextBox ID="txtDispatchDescription" runat="server" TextMode="MultiLine" class="input_out"
                                        onfocus="this.className='input_on';this.onmouseout=''" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                        onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"
                                        Height="150px" Width="610px"></asp:TextBox></td>
                            </tr>
                            </table>
                            
                           <table class="tblDataArea" id="tablechuli"  width="100%" runat="server">
                            <tr  class="tblQueryArea">
                                <td class="tblDataCaption" colspan="4" ><div style="width: 210px;" class="title">
                                    <img src="../images/lv3.gif" style="margin-bottom: -3px;" />分派处理</div>
                                    </td>
                            </tr>
                            <tr>
                                <td class="tdQueryCaption" style="width: 121px">
                                    处理组：</td>
                                <td class="tdQueryField" colspan="3">
                                    <asp:DropDownList ID="ddlNextDepartment" runat="server" class="input_out" onfocus="this.className='input_on';this.onmouseout=''"
                                            onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                            onmousemove="this.className='input_move'" onmouseout="this.className='input_out'" Width="140px">
                                    </asp:DropDownList><span style="color: #ff0000"></span></td>
                            </tr>
                            <tr>
                                <td class="tdQueryCaption" style="width: 121px">
                                    处理人：</td>
                                <td class="tdQueryField" colspan="3">
                                    <asp:DropDownList ID="ddlNextPerson" runat="server" class="input_out" onfocus="this.className='input_on';this.onmouseout=''"
                                            onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                            onmousemove="this.className='input_move'" onmouseout="this.className='input_out'" Width="138px">
                                    </asp:DropDownList><span style="color: #ff0000"></span></td>
                            </tr>
                            <tr>
                                <td class="tdQueryCaption" style="width: 121px">
                                    处理建议：</td>
                                <td class="tdQueryField" colspan="3">
                                    <asp:TextBox ID="txtTransactComments" runat="server" class="input_out" Height="80px" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                                        onmouseout="this.className='input_out'" TextMode="MultiLine" Width="610px"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td class="tdQueryCaption" style="width: 121px">
                                    状态：</td>
                                <td class="tdQueryField" colspan="3">
                                    <asp:DropDownList ID="ddlState" runat="server" class="input_out" onfocus="this.className='input_on';this.onmouseout=''"
                                            onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                            onmousemove="this.className='input_move'" onmouseout="this.className='input_out'">
                                    </asp:DropDownList><span style="color: #ff0000">*</span>(说明：状态只有处理人可以看到并能修改处理状态及填写处理反馈)</td>
                            </tr>
                            <tr>
                                <td class="tdQueryCaption" style="width: 121px">
                                    处理反馈：</td>
                                <td class="tdQueryField" colspan="3">
                                    <asp:TextBox ID="txtFeedback" runat="server" class="input_out" Height="80px" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                                        onmouseout="this.className='input_out'" TextMode="MultiLine" Width="610px" ></asp:TextBox></td>
                            </tr>
                            </table>
                        <table class="tblDataArea" width="100%">
                            <tr class="tblQueryArea">
                                <td class="tblDataCaption" colspan="4" style="text-align: center; height: 31px;">
                                    <asp:Button ID="btnSave" runat="server" CssClass="cssButton" Text="保存" OnClientClick="javascript:return confirm('你确认要提交吗?');"  OnClick="btnSave_Click" /></td>
                            </tr>
                        </table>
                    </div>
                </div>
    </form>
</body>
</html>
    
        
<script type="text/javascript">

function check()
{
	if($.GetValidResult())/*验证表单*/
	{	
	    return true; 
	}
	else
	{
	    return false;
	}
}

        $("#txtExpectTime").attr("dataType","Require");
        $("#txtExpectTime").attr("tip", " ");
        

        $("#txtTitle").attr("dataType","Require");
        $("#txtTitle").attr("tip", " ");
    
    
      $("#ddlOwnerCompnayID").attr("dataType","OverEqualsZero");
      $("#ddlOwnerCompnayID").attr("tip", "属性公司必须选取");

      $("#ddlRequestPeople").attr("dataType","OverEqualsZero");
      $("#ddlRequestPeople").attr("tip", " ");
      
      $("#ddlServiceID").attr("dataType","OverEqualsZero");
      $("#ddlServiceID").attr("tip", " ");
      
                
</script>
